package backend.filter;

import java.util.List;

import backend.message.Message;


public class FilterManager implements Filter {
	
	private Filter filterChian; 

    public void setFilterChian(Filter filterChian) {
    	this.filterChian = filterChian;
    }

	public void process(Message message, Filter next) {
		
		if(message == null)return;	
		filterChian.process(message, next);
		
	}
	
	public void process(Message message){
		if(message == null)return;	
		filterChian.process(message, null);
	}

	public List<Filter> getRegistitedFilter() {
		// TODO Auto-generated method stub
		return null;
	}
	
}
